all:
	arm-linux-gcc -c -fno-builtin-putchar -o uart.o uart.c
	arm-linux-gcc -c -o start.o start.S
	arm-linux-gcc -c -fno-builtin-putchar -o m_printf.o m_printf.c
	arm-linux-gcc -c -fno-builtin-putchar -o main.o main.c
	arm-linux-ld -Ttext 0 -Tdata 0xe80 start.o uart.o  m_printf.o main.o -o uart.elf -static -L /usr/local/arm/4.3.2/lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t -lgcc
	arm-linux-objcopy -O binary -S uart.elf uart.bin
	arm-linux-objdump -D uart.elf > uart.dis

clean: 
	rm *.o *.elf *.bin *.dis